/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.oop2;

/**
 *
 * @author WORKSPOT2
 */
public class Sword implements IWeapon
{

    private int sharpness;

    @Override
    public int attack()
    {
        sharpness = sharpness - 2;
        return 8;
    }

    @Override
    public boolean upgrade(int chance)
    {
        sharpness = sharpness + chance;
        return true;
    }

    @Override
    public void breakUp()
    {
        sharpness = 0;
    }

    @Override
    public String getName()
    {
        return "Sword";
    }
}
